package com.superhelper.printer;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import com.superhelper.common.utils.SpringContextUtil;
import com.superhelper.printer.server.PrinterServer;

@SpringBootApplication
@MapperScan("com.superhelper.common.mapper")
public class App {

    public static void main(String[] args) throws Exception {
        SpringApplication.run(App.class, args);
        ((PrinterServer) SpringContextUtil.getBeanStatic("printerServer")).run();
    }
}
